$OpenBSD: patch-sys_share_unixtty_c,v 1.2 2015/03/27 10:59:00 tobiasu Exp $
--- sys/share/unixtty.c.orig	Mon Dec  8 00:39:13 2003
+++ sys/share/unixtty.c	Sat Mar 21 18:40:41 2015
@@ -121,13 +121,13 @@ struct tchars inittyb2, curttyb2;
 
 #endif	/* V7 */
 
-#if defined(TTY_GRAPHICS) && ((!defined(SYSV) && !defined(HPUX)) || defined(UNIXPC) || defined(SVR4))
+#if defined(TTY_GRAPHICS) && ((!defined(SYSV) && !defined(HPUX)) || defined(UNIXPC) || defined(SVR4)) || defined(__OpenBSD__)
 # ifndef LINT
 extern			/* it is defined in libtermlib (libtermcap) */
 # endif
-	short ospeed;	/* terminal baudrate; set by gettty */
+	int ospeed;	/* terminal baudrate; set by gettty */
 #else
-short	ospeed = 0;	/* gets around "not defined" error message */
+int	ospeed = 0;	/* gets around "not defined" error message */
 #endif
 
 #if defined(POSIX_TYPES) && defined(BSD)
